import request  from '../../axios'

//获取医院数据
export  function reqHospital(page: number, limit: number, hostype: string, districtCode: string, hosname: string) {
    return request({
      url: `/hosp/hospital/${page}/${limit}`,
      method: 'get',
      params: {
        hostype,
        districtCode,
        hosname
      }
    })
}

//获取医院等级地址的数据
//获取医院的等级或者获取医院地区的数据
export function reqHospitalLevelAndRegion(dictCode: string) {
  return request({
    url: `/cmn/dict/findByDictCode/${dictCode}`,
    method: 'get'
  })
}

//搜索功能，根据关键字获取医院数据进行展示
export function reqHospitalInfo(hosname: string) {
  return request({
    url: `/hosp/hospital/findByHosname/${hosname}`,
    method: 'get'
  })
}